# -*- coding: utf-8 -*-
import requests
url ='https://docs.python.org/3/library/datetime.html#module-datetime'
resp=requests.get(url)
print(resp.text)
resp.encoding='utf-8'
print(resp.text)


#爬取图片
url='https://r.bing.com/rp/WolXT0CQYS0wYqf6yEezati6rBo.png'
resp=requests.get(url)
with open('logp.png','wb') as file:
    file.write(resp.content)